package defpackage; import cn.wps.moffice.OfficeApp; import cn.wps.moffice_eng.R; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import com.mopub.mobileads.VastExtensionXmlManager; import defpackage.dlv; import java.util.List; /* renamed from: gyo reason: default package */ public final class gyo { /* renamed from: gyo$a */ public class a { @SerializedName("guid") @Expose public String dxl; @SerializedName("show_name") @Expose public String fyA; @SerializedName("shop_id") @Expose public String hLl; @SerializedName("shop_price") @Expose public String hLm; @SerializedName("discount_shop_id") @Expose public String hLn; @SerializedName("discount_shop_price") @Expose public String hLo; @SerializedName("expiry") @Expose public String hLp; @SerializedName("coin_price_id") @Expose public String hLq; @SerializedName("coin_price") @Expose public int hLr; @SerializedName("discount_coin_price") @Expose public int hLs; @SerializedName("tip") @Expose public String hLt; @SerializedName("sub_type") @Expose public String hLu; @SerializedName("select") @Expose public boolean hLv; @SerializedName("is_discount") @Expose public boolean hLw; @SerializedName(VastExtensionXmlManager.TYPE) @Expose public String type; public a() { } } /* renamed from: gyo$b */ public class b { @SerializedName("all_id") @Expose public List<String> hLy; @SerializedName("item") @Expose public List<a> items; public b() { } } /* renamed from: gyo$c */ public interface c { void a(b bVar); } /* renamed from: gyo$d */ public static class d { @SerializedName("downloadTime") @Expose public long dHM; @SerializedName("languageCode") @Expose public String dHN; @SerializedName("serverDatas") @Expose public b hLz; } public static void a(final c cVar, final dlv.a aVar) { b e = e(aVar); if (e != null) { cVar.a(e); } else { fcx.p(new Runnable() { /* class defpackage.gyo.AnonymousClass1 */ public final void run() { final b f = gyo.f(aVar); if (!(f == null || f.items == null)) { d dVar = new d(); dVar.hLz = f; dVar.dHM = System.currentTimeMillis(); dVar.dHN = eip.dHN; lvb.writeObject(dVar, OfficeApp.arx().arM().lYD + aVar.name()); } fzc.bJM().y(new Runnable() { /* class defpackage.gyo.AnonymousClass1.AnonymousClass1 */ public final void run() { if (f == null) { lvg.d(OfficeApp.arx(), R.string.documentmanager_tips_network_error, 0); } cVar.a(f); } }); } }); } } public static b e(dlv.a aVar) { d dVar = (d) lvb.readObject(OfficeApp.arx().arM().lYD + aVar.name(), d.class); if (dVar == null || Math.abs(System.currentTimeMillis() - dVar.dHM) >= 14400000 || !eip.dHN.equals(dVar.dHN)) { return null; } return dVar.hLz; } public static b f(dlv.a aVar) { try { OfficeApp arx = OfficeApp.arx(); return (b) lvb.b(lwd.f("https://service-api.kingsoft-office-service.com/vip/premium/info" + lwv.a("?shop_type=%s&lang=%s&version=%s&channel=%s", aVar.name(), eip.dHN, arx.getString(R.string.app_version), arx.arB()), null), b.class); } catch (Exception e) { e.printStackTrace(); return null; } } }